Optimal. Leaf size=59 \[ \frac {a^3 c^3 \tan (e+f x)}{f}+\frac {2 a^3 c^3 \tan ^3(e+f x)}{3 f}+\frac {a^3 c^3 \tan ^5(e+f x)}{5 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {3603, 3852}
\begin {gather*} \frac {a^3 c^3 \tan ^5(e+f x)}{5 f}+\frac {2 a^3 c^3 \tan ^3(e+f x)}{3 f}+\frac {a^3 c^3 \tan (e+f x)}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3603
Rule 3852
Rubi steps
\begin {align*} \int (a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3 \, dx &=\left (a^3 c^3\right ) \int \sec ^6(e+f x) \, dx\\ &=-\frac {\left (a^3 c^3\right ) \text {Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-\tan (e+f x)\right )}{f}\\ &=\frac {a^3 c^3 \tan (e+f x)}{f}+\frac {2 a^3 c^3 \tan ^3(e+f x)}{3 f}+\frac {a^3 c^3 \tan ^5(e+f x)}{5 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 41, normalized size = 0.69 \begin {gather*} \frac {a^3 c^3 \left (\tan (e+f x)+\frac {2}{3} \tan ^3(e+f x)+\frac {1}{5} \tan ^5(e+f x)\right )}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 38, normalized size = 0.64
method | result | size |
derivativedivides | \(\frac {a^{3} c^{3} \left (\frac {\left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {2 \left (\tan ^{3}\left (f x +e \right )\right )}{3}+\tan \left (f x +e \right )\right )}{f}\) | \(38\) |
default | \(\frac {a^{3} c^{3} \left (\frac {\left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {2 \left (\tan ^{3}\left (f x +e \right )\right )}{3}+\tan \left (f x +e \right )\right )}{f}\) | \(38\) |
risch | \(\frac {16 i a^{3} c^{3} \left (10 \,{\mathrm e}^{4 i \left (f x +e \right )}+5 \,{\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{15 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{5}}\) | \(50\) |
norman | \(\frac {a^{3} c^{3} \tan \left (f x +e \right )}{f}+\frac {2 a^{3} c^{3} \left (\tan ^{3}\left (f x +e \right )\right )}{3 f}+\frac {a^{3} c^{3} \left (\tan ^{5}\left (f x +e \right )\right )}{5 f}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 55, normalized size = 0.93 \begin {gather*} \frac {3 \, a^{3} c^{3} \tan \left (f x + e\right )^{5} + 10 \, a^{3} c^{3} \tan \left (f x + e\right )^{3} + 15 \, a^{3} c^{3} \tan \left (f x + e\right )}{15 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 0.94, size = 115, normalized size = 1.95 \begin {gather*} -\frac {16 \, {\left (-10 i \, a^{3} c^{3} e^{\left (4 i \, f x + 4 i \, e\right )} - 5 i \, a^{3} c^{3} e^{\left (2 i \, f x + 2 i \, e\right )} - i \, a^{3} c^{3}\right )}}{15 \, {\left (f e^{\left (10 i \, f x + 10 i \, e\right )} + 5 \, f e^{\left (8 i \, f x + 8 i \, e\right )} + 10 \, f e^{\left (6 i \, f x + 6 i \, e\right )} + 10 \, f e^{\left (4 i \, f x + 4 i \, e\right )} + 5 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.32, size = 156, normalized size = 2.64 \begin {gather*} \frac {160 i a^{3} c^{3} e^{4 i e} e^{4 i f x} + 80 i a^{3} c^{3} e^{2 i e} e^{2 i f x} + 16 i a^{3} c^{3}}{15 f e^{10 i e} e^{10 i f x} + 75 f e^{8 i e} e^{8 i f x} + 150 f e^{6 i e} e^{6 i f x} + 150 f e^{4 i e} e^{4 i f x} + 75 f e^{2 i e} e^{2 i f x} + 15 f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 371 vs.
\(2 (58) = 116\).
time = 0.72, size = 371, normalized size = 6.29 \begin {gather*} -\frac {15 \, a^{3} c^{3} \tan \left (f x\right )^{5} \tan \left (e\right )^{4} + 15 \, a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right )^{5} + 10 \, a^{3} c^{3} \tan \left (f x\right )^{5} \tan \left (e\right )^{2} - 30 \, a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right )^{3} - 30 \, a^{3} c^{3} \tan \left (f x\right )^{3} \tan \left (e\right )^{4} + 10 \, a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right )^{5} + 3 \, a^{3} c^{3} \tan \left (f x\right )^{5} - 5 \, a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right ) + 60 \, a^{3} c^{3} \tan \left (f x\right )^{3} \tan \left (e\right )^{2} + 60 \, a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right )^{3} - 5 \, a^{3} c^{3} \tan \left (f x\right ) \tan \left (e\right )^{4} + 3 \, a^{3} c^{3} \tan \left (e\right )^{5} + 10 \, a^{3} c^{3} \tan \left (f x\right )^{3} - 30 \, a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right ) - 30 \, a^{3} c^{3} \tan \left (f x\right ) \tan \left (e\right )^{2} + 10 \, a^{3} c^{3} \tan \left (e\right )^{3} + 15 \, a^{3} c^{3} \tan \left (f x\right ) + 15 \, a^{3} c^{3} \tan \left (e\right )}{15 \, {\left (f \tan \left (f x\right )^{5} \tan \left (e\right )^{5} - 5 \, f \tan \left (f x\right )^{4} \tan \left (e\right )^{4} + 10 \, f \tan \left (f x\right )^{3} \tan \left (e\right )^{3} - 10 \, f \tan \left (f x\right )^{2} \tan \left (e\right )^{2} + 5 \, f \tan \left (f x\right ) \tan \left (e\right ) - f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.73, size = 39, normalized size = 0.66 \begin {gather*} \frac {a^3\,c^3\,\mathrm {tan}\left (e+f\,x\right )\,\left (3\,{\mathrm {tan}\left (e+f\,x\right )}^4+10\,{\mathrm {tan}\left (e+f\,x\right )}^2+15\right )}{15\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________